<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
</head>
<body>
<form action="expressadd" method="post" name="formadd">
<div class="panel admin-panel">
    <div class="panel-head"><strong> 快递信息</strong></div>
    <div class="body-content">
        <div class="form-x">
            <div class="form-group">
                <div class="label">
                    <label for="sitename">发货姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="hairname"  size="50" data-validate="required:请输入发货姓名,repeat#password:"/>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">发货手机号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="hairphone"  size="50" data-validate="required:请输入发货手机号,repeat#password:"/>
                </div>
            </div>
            <hr>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">发货城市：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="haircity"  size="50" data-validate="required:请输入发货城市,repeat#password:"/>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">发货地址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="hairaddress"  size="50" data-validate="required:请输入发货地址,repeat#password:"/>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">发货单位名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="haircompany"   size="50" data-validate="required:请输入发货单位名称,repeat#password:"/>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">付款方式：</label>
                </div>
                <div class="field">
                    <select id="type" class="input w50" name="pay">
                        <option value="1" selected >寄付</option>
                        <option value="2"  >到付</option>

                    </select>
                </div></div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">重量：</label>
                </div>
                <div class="field">

                    <input type="text" class="input w50"  name="weight"  size="50" data-validate="required:请输入重量,repeat#password:"/>KG

                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">数量：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="number"   size="50" data-validate="required:请输入数量,repeat#password:" />
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sitename">保险价格：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="insuredprice"  size="50" data-validate="required:请输入保险价格 ,repeat#password:" />
                </div>
            </div>

            <!--<div class="form-group">-->
                <!--<div class="label">-->
                    <!--<label for="sitename">揽收员工：</label>-->
                <!--</div>-->
                <!--<div class="field">-->
                    <!--<input type="text" class="input w50"  name="collect" size="50" data-validate="required:请输入揽收员工 ,repeat#password:"/>-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <div class="label">
                    <label for="sitename">费用总计：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="totalpay"  size="50" data-validate="required:请输入费用总计 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">快递物品：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="article"   size="50" data-validate="required:请输入快递物品 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">收件人姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="collectname"  size="50" data-validate="required:请输入收件人姓名 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">收件人手机号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="collectphone"  size="50" data-validate="required:请输入收件人手机号 ,repeat#password:" />
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">收件城市：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="collectcity"   size="50" data-validate="required:请输入收件城市 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">收件人地址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="collectaddress"   size="50" data-validate="required:请输入收件人地址 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sitename">收件人单位名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50"  name="collectompany"  size="50" data-validate="required:请输入收件人单位名称 ,repeat#password:"/>
                </div>
            </div>
            <div class="form-group" style="display: none">
                <div class="label" >
                    <label for="sitename">签收状态：</label>
                </div>


                <!--<div class="field" style="display: none">-->
                    <!--<input type="text" class="input w100"  name="sign" value="0" size="50" data-validate="required:请输入签收状态,repeat#password:"/>-->
                    <!--<center> <p>0为未签收 , 1为已签收</p> </center>-->
                <!--</div> -->

            </div>
            <center><button class="button bg-main icon-check-square-o" onclick="express_insert()"> 提交</button>   </center>
        </div>
    </div>
</div>
</form>
</body>
<script>
    function express_insert() {
        var hairname = $(" input[ name='hairname' ] ").val();
        var hairphone = $(" input[ name='hairphone' ] ").val();
        var oddnumbers = $(" input[ name='oddnumbers' ] ").val();
        var hairaddress = $(" input[ name='hairaddress' ] ").val();
        var haircompany = $(" input[ name='haircompany' ] ").val();
        var pay = $(" input[ name='pay' ] ").val();
        var weight = $(" input[ name='weight' ] ").val();
        var number = $(" input[ name='number' ] ").val();
        var insuredprice = $(" input[ name='insuredprice' ] ").val();
        var collect = $(" input[ name='collect' ] ").val();
        var totalpay = $(" input[ name='totalpay' ] ").val();
        var article = $(" input[ name='article' ] ").val();
        var collectname = $(" input[ name='collectname' ] ").val();
        var collectphone = $(" input[ name='collectphone' ] ").val();
        var collectaddress = $(" input[ name='collectaddress' ] ").val();
        var collectompany = $(" input[ name='collectompany' ] ").val();
        var sign = $(" input[ name='sign' ] ").val();

        if(hairname == ""){
            alert('发货姓名不能为空');
            return false;
        }
        if(hairphone == ""){
            alert('发货手机号不能为空');
            return false;
        }
        if(hairaddress == ""){
            alert('发货地址不能为空');
            return false;
        }
        if(haircompany == ""){
            alert('发货单位名称不能为空');
            return false;
        }
        if(pay == ""){
            alert('运费金额不能为空');
            return false;
        }
        if(weight == ""){
            alert('重量不能为空');
            return false;
        }
        if(number == ""){
            alert('数量不能为空');
            return false;
        }
        if(insuredprice == ""){
            alert('保险价格不能为空');
            return false;
        }
        if(collect == ""){
            alert('揽收员工不能为空');
            return false;
        }
        if(totalpay == ""){
            alert('费用总计不能为空');
            return false;
        }
        if(article == ""){
            alert('快递物品不能为空');
            return false;
        }
        if(collectname == ""){
            alert('收件人姓名不能为空');
            return false;
        }
        if(collectphone == ""){
            alert('收件人手机号不能为空');
            return false;
        }
        if(collectaddress == ""){
            alert('收件人地址不能为空');
            return false;
        }
        if(collectompany == ""){
            alert('收件人单位名称不能为空');
            return false;
        }
        document.formadd.submit();
    }
</script>
</html>